package org.linlinjava.litemall.core.util;

import org.linlinjava.litemall.core.config.ExceptionMsgEnum;

public class AgedmallException extends Exception{

    private String msg;
    private int code;

    public AgedmallException(ExceptionMsgEnum msgEnum) {
        this.code = msgEnum.getCode();
        this.msg = msgEnum.getMsg();
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
